package situ.autoweter.entity;

import com.alibaba.fastjson.JSONObject;
import java.util.*;
import java.time.*;
/**
 * RD_Volume实体类
 * 
 * @author 
 *
 */
public class RdVolume {
	/***/
	private Object ID; 
	/***/
	private String VolumeName; 
	/***/
	private Integer AreaID; 
	/***/
	private Integer OrderIndex; 
	/***/
	private String Remark; 
	/***/
	private Integer Disabled; 
	/**
	 * 实例化
	 */
	public RdVolume() {
		super();
	}
	/**
	 * 实例化
	 * 
	 * @param obj
	 */
	public RdVolume(JSONObject obj) {
		this();
		this.setID(obj.get("ID"));
		if (obj.get("VolumeName") instanceof String) {
			this.setVolumeName((String) obj.get("VolumeName"));
		}
		if (obj.get("AreaID") instanceof Number) {
			this.setAreaID(((Number) obj.get("AreaID")).intValue());
		}
		if (obj.get("OrderIndex") instanceof Number) {
			this.setOrderIndex(((Number) obj.get("OrderIndex")).intValue());
		}
		if (obj.get("Remark") instanceof String) {
			this.setRemark((String) obj.get("Remark"));
		}
		if (obj.get("Disabled") instanceof Number) {
			this.setDisabled(((Number) obj.get("Disabled")).intValue());
		}
	}
	
	/**
	 * 将当前对象转换为JsonObject
	 * 
	 * @return
	 */
	public JSONObject toJson() {
		JSONObject result = new JSONObject();
		if (this.getID() != null) {
			result.put("ID",this.getID());
		}
		if (this.getVolumeName() != null) {
			result.put("VolumeName",this.getVolumeName());
		}
		if (this.getAreaID() != null) {
			result.put("AreaID",this.getAreaID());
		}
		if (this.getOrderIndex() != null) {
			result.put("OrderIndex",this.getOrderIndex());
		}
		if (this.getRemark() != null) {
			result.put("Remark",this.getRemark());
		}
		if (this.getDisabled() != null) {
			result.put("Disabled",this.getDisabled());
		}
		return result;
	}
	
	
	/**
	 * 获取ID
	 * 
	 * @return
	 */
	public Object getID() {
		return ID;
	}

	/**
	 * 设置ID
	 * 
	 * @param ID
	 */
	public void setID(Object ID) {
		this.ID = ID;
	}
	
	/**
	 * 获取VolumeName
	 * 
	 * @return
	 */
	public String getVolumeName() {
		return VolumeName;
	}

	/**
	 * 设置VolumeName
	 * 
	 * @param VolumeName
	 */
	public void setVolumeName(String VolumeName) {
		this.VolumeName = VolumeName;
	}
	
	/**
	 * 获取AreaID
	 * 
	 * @return
	 */
	public Integer getAreaID() {
		return AreaID;
	}

	/**
	 * 设置AreaID
	 * 
	 * @param AreaID
	 */
	public void setAreaID(Integer AreaID) {
		this.AreaID = AreaID;
	}
	
	/**
	 * 获取OrderIndex
	 * 
	 * @return
	 */
	public Integer getOrderIndex() {
		return OrderIndex;
	}

	/**
	 * 设置OrderIndex
	 * 
	 * @param OrderIndex
	 */
	public void setOrderIndex(Integer OrderIndex) {
		this.OrderIndex = OrderIndex;
	}
	
	/**
	 * 获取Remark
	 * 
	 * @return
	 */
	public String getRemark() {
		return Remark;
	}

	/**
	 * 设置Remark
	 * 
	 * @param Remark
	 */
	public void setRemark(String Remark) {
		this.Remark = Remark;
	}
	
	/**
	 * 获取Disabled
	 * 
	 * @return
	 */
	public Integer getDisabled() {
		return Disabled;
	}

	/**
	 * 设置Disabled
	 * 
	 * @param Disabled
	 */
	public void setDisabled(Integer Disabled) {
		this.Disabled = Disabled;
	}

	@Override
	public String toString() {
		return "RdVolume [ID=" + ID + " , VolumeName=" + VolumeName + " , AreaID=" + AreaID + " , OrderIndex=" + OrderIndex + " , Remark=" + Remark + " , Disabled=" + Disabled + "  ]";
	
	}
	
	
}
